﻿using CPPEI;
using CPPEI.WebApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Demo
{
    [GetAction("test","get","1.0")]
    public class TestGetAction : BaseAction<TestGetParams, TestGetResult>
    {
        protected override ActionResult<TestGetResult> OnExecute(ActionContext context, SysParams sysParams, TestGetParams opParams)
        {
            TestGetResult result = new TestGetResult();
            result.Id = "1";
            return new ActionResult<TestGetResult>(new ServiceResult(1));
        }
    }

    public class TestGetParams
    {
        public string Id { get; set; }

        public string[] StrArr { get; set; }

        
    }

    public class TestGetResult
    {
        public string Id { get; set; }
    }
}